﻿using System;
using System.Collections.Generic;
using NewLife.CommonEntity;
using XCode;
using XCode.DataAccessLayer;

namespace XTLCMS
{
    [BindTable("Log", Description = "系统日志", ConnName = "XTLDB", DbType = DatabaseType.SqlServer)]
    public class XLog : Log<XLog>
    {
        #region
        /// <summary>导出</summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public static String Export(IEntityList list)
        {
            return list.ToXml();
        }

        /// <summary>导出</summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public static String Export(IList<XLog> list)
        {
            return Export(new EntityList<XLog>(list));
        }

        /// <summary>导出</summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public static String Export(EntityList<XLog> list)
        {
            return list.ToXml();
        }
        #endregion
    }
}